﻿<%@ Control language="C#" Inherits="Triax.Modules.Passport.ViewPassport" CodeFile="ViewPassport.ascx.cs" AutoEventWireup="true"%>
<%@ Register TagPrefix="dnn" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>
<asp:GridView ID="lstSoCMND" DataKeyField="ItemID" runat="server" CellPadding="4" Width="100%"
AutoGenerateColumns="False" AllowPaging="true" PageSize="10"    OnPageIndexChanging="lstSoCMND_PageIndexChanging" >
    <Columns>
        <asp:TemplateField ItemStyle-Width="30px" ItemStyle-HorizontalAlign="Center">
            <HeaderTemplate>
                <asp:Label runat="server" Text="STT"></asp:Label>
            </HeaderTemplate>
            <ItemTemplate>                
                <%# Container.DataItemIndex + 1 %> 
            </ItemTemplate>
        </asp:TemplateField>  
        <asp:BoundField HeaderText="Thư mục ảnh" DataField="DuongDanAnh"/>
        <asp:BoundField HeaderText="Số CMND" DataField="SoCMND"/>
        <asp:BoundField HeaderText="Họ và tên" DataField="HoTen"/>
        <asp:BoundField HeaderText="Giới Tính" DataField="GioiTinh"/>
        <asp:BoundField HeaderText="Năm Sinh" DataField="NamSinh"/>
        <asp:BoundField HeaderText="Tỉnh" DataField="Tinh"/>
        
       <asp:TemplateField ItemStyle-Width="50px" ItemStyle-HorizontalAlign="Center">
            <HeaderTemplate>
                <asp:Label runat="server" Text="Sửa"></asp:Label>
            </HeaderTemplate>
            <ItemTemplate>                
                <asp:HyperLink CssClass="CommandButton" runat="server" ID="HyperLinkEdit" 
                    NavigateUrl='<%# DotNetNuke.Common.Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "Edit", "mid", ModuleId.ToString(), "ItemID", Eval("ItemID").ToString()) %>'>Sửa</asp:HyperLink>              
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
 </asp:GridView>